package strongholdCraft.common.Items;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemPotion;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
import strongholdCraft.common.Enums.Enums;
import strongholdCraft.common.Items.tool.ItemAxe;
import strongholdCraft.common.Items.tool.ItemChisel;
import strongholdCraft.common.Items.tool.ItemDestroyer;
import strongholdCraft.common.Items.tool.ItemEndPickaxe;
import strongholdCraft.common.Items.tool.ItemEndSword;
import strongholdCraft.common.Items.tool.ItemHoe;
import strongholdCraft.common.Items.tool.ItemPickaxe;
import strongholdCraft.common.Items.tool.ItemShovel;
import strongholdCraft.common.Items.tool.ItemSmelter;
import cpw.mods.fml.common.registry.LanguageRegistry;


public class Items {


	public static CreativeTabs tabEnd = new CreativeTabs("tabEnd"){
		public ItemStack getIconItemStack() {
			return new ItemStack(itemEndIron,1,0);
		}
	};
	//Current largest ID Value : 517



	public final static Item itemEndDust = new Item(500).setMaxStackSize(64).setCreativeTab(tabEnd).setUnlocalizedName("enddust");
	public final static Item itemEndIron = new Item(501).setMaxStackSize(64).setCreativeTab(tabEnd).setUnlocalizedName("endiron");
	public final static Item itemChisel = new ItemChisel(502).setCreativeTab(tabEnd).setUnlocalizedName("chisel");
	public final static Item itemMagicEssence = new ItemEssenceMagic(503).setMaxStackSize(64).setCreativeTab(tabEnd).setUnlocalizedName("magicEssence");
	public final static Item itemStickBlaze = new Item(504).setMaxStackSize(64).setCreativeTab(tabEnd).setUnlocalizedName("endstick");
	//505
	//506
	//507
	//508
	//509
	public final static Item itemEndSword = new ItemEndSword(510, Enums.ender, "swordEnd").setCreativeTab(tabEnd);
	public static Item itemEndAxe = new ItemAxe(511, Enums.ender,  "itemEndAxe").setCreativeTab(tabEnd);
	public static Item itemEndShovel = new ItemShovel(512, Enums.ender,  "itemEndShovel").setCreativeTab(tabEnd);
	public static Item itemEndPickaxe = new ItemEndPickaxe(513, Enums.ender,  "itemEndPickaxe").setCreativeTab(tabEnd);
	public static Item itemEndHoe = new ItemHoe(514, Enums.ender,  "itemEndHoe").setCreativeTab(tabEnd);
	public final static Item itemDestroyer = new ItemDestroyer(515, "destoryer").setCreativeTab(tabEnd).setUnlocalizedName("destroyer");
	public final static Item itemSmelter = new ItemSmelter(516).setCreativeTab(tabEnd).setUnlocalizedName("smelter");
	public final static Item itemEggBase = new Item(517).setMaxStackSize(16).setCreativeTab(tabEnd).setUnlocalizedName("baseSpawnEgg");
	public static ItemPotionMilk itemPotionMilk = (ItemPotionMilk) new ItemPotionMilk(518).setCreativeTab(tabEnd).setPotionEffect("potionMilk").setUnlocalizedName("potionMilk");









	public static void registerNames(){
		LanguageRegistry.addName(itemEndDust, "End Dust");
		LanguageRegistry.addName(itemEndIron, "End Iron");
		LanguageRegistry.addName(itemStickBlaze, "Blaze Stick");
		LanguageRegistry.addName(itemPotionMilk, "Splash Potion of Milk");
		LanguageRegistry.addName(itemEggBase, "Spawn Egg Base");

		//tools
		LanguageRegistry.addName(itemEndShovel, "Ender Shovel");
		LanguageRegistry.addName(itemEndAxe, "Ender Axe");
		LanguageRegistry.addName(itemEndPickaxe, "Ender Pickaxe");
		LanguageRegistry.addName(itemEndHoe, "Ender Hoe");
		LanguageRegistry.addName(itemEndSword, "Ender Sword");
		LanguageRegistry.addName(itemChisel, "Chisel");
		LanguageRegistry.addName(itemDestroyer, "Destroyer");
		LanguageRegistry.addName(itemSmelter, "Smelter");

		//Essences
		LanguageRegistry.addName(itemMagicEssence, "Magical Essence: Pure");

	}

}
